<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="p" %>

<script type="text/javascript" src="<%=request.getContextPath()%>/js/validators/call.js"></script>

 <div class="f_l margin1" style="width:100%">
    <div style="height:24px;color:red" align="center" id="errorInfo">${failInfo }</div>
   	<div style="height:24px;color:red;font-weight:bold" align="left">新增订单</div>
    <s:form id="submitForm" action="call!save" method="post" theme="simple">
   	<table>
   		<tbody>
   			<tr>
   				<td width="10%"><s:text name="姓名"/>：</td>
   				<td><input type="text" name="call.name" /></td>
   				<td><s:text name="性别"/>：</td>
   				<td><s:radio name="call.gender" list="#{'1':'先生','2':'女士'}" listKey="key" listValue="value" value="1"/> </td>
   			</tr>
   			<tr>
   				<td><s:text name="手机"/>：</td>
   				<td><input type="text" name="call.mobile"></td>
   				<td><s:text name="邮箱"/>：</td>
   				<td><input type="text" name="call.email">  </td>
   			</tr>
   			<tr>
   				<td><s:text name="地址"></s:text>：</td>
   				<td><input type="text" name="call.address"></td>
   			</tr>
   			<tr>
   			    <td><s:text name="负责人"/>：</td>
   				<td>
   					<select onchange="javascript:commonSelect(this,'call.inchargeUserName');" name="call.inchargeUserId" >
		                <option value="">-- 请选择 --</option>
			            <s:iterator value="allChargePersons" status="status">
			                <option value="${id}">${userName}</option>
			            </s:iterator>
		            </select>
   				</td>
   				<td><s:text name="状态"/>：</td>
   				<td><select name="call.status">
   				      <option value="1">-- 新预约 --</option>
   				      <option value="2">-- 追踪中 --</option>
   				      <option value="3">-- 已关闭 --</option>
   				    </select>  
   				</td>
   			</tr>
   			<tr>
   			    <td><s:text name="内容"/>：</td>
   				<td colspan="3">
   					 <textarea rows="4" cols="50" name="call.content"></textarea>
   				</td>
   			</tr>
   			<tr> 
   				<td colspan="2" align="right">
   				<input type="submit" value="确认" onclick="return doValidate(event);" />
  				</td>
   				<td colspan="2" align="left">
   					<input type="button" value="取消" onclick="javascript:history.back(-1);"/>
   				</td>
   			 </tr>
   		</tbody>
   	</table>
   	<input type="hidden" id="call.inchargeUserName" name="call.inchargeUserName">
    </s:form>
  </div>
  